package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.BrandDTO;
import com.leyou.item.entitry.Brand;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author 张伟奇
 * @Date 2021/7/15 11:49
 * @description
 * @Version 1.0
 **/
@Component
public interface BrandService extends IService<Brand> {

    List<BrandDTO> findBrandById(Long id);

    List<BrandDTO> findBrandByCategoryId(Long id);

    List<BrandDTO> findBrandIds(List<Integer> ids);

    PageDTO<BrandDTO> findBrandByPage(Integer page, Integer rows, String key);

    void  saveBrand(Brand brand,List<Long> categoryIds);

    void updateBrand(Brand brand,List<Long> categoryIds);

    void deleteBrandId(Long id);
}
